import { GET, POST } from '../utils/methods'

// 获取商品的列表
export const proListsApi = () => GET('pro/list')

// 获取秒杀或者推荐的列表
export const showDataApi = (data: any) => POST('pro/showdata', data)

// 获取商品的分类
export const getCategoryApi = () => GET('pro/getCategory')

// 筛选商品
export const searchProApi = (data: any) => POST('pro/searchPro', data)

// 修改商品是否推荐或者秒杀
export const updateFlagApi =(data: any)=>POST('pro/updateFlag',data)